3.7 \(\int (A+C \sec ^2(c+d x)) \, dx\)

Optimal. Leaf size=15 \[ A x+\frac {C \tan (c+d x)}{d} \]

[Out]

A*x+C*tan(d*x+c)/d

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3767, 8} \[ A x+\frac {C \tan (c+d x)}{d} \]

Antiderivative was successfully verified.

[In]

Int[A + C*Sec[c + d*x]^2,x]

[Out]

A*x + (C*Tan[c + d*x])/d

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 3767

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> -Dist[d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rubi steps

\begin {align*} \int \left (A+C \sec ^2(c+d x)\right ) \, dx &=A x+C \int \sec ^2(c+d x) \, dx\\ &=A x-\frac {C \operatorname {Subst}(\int 1 \, dx,x,-\tan (c+d x))}{d}\\ &=A x+\frac {C \tan (c+d x)}{d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 15, normalized size = 1.00 \[ A x+\frac {C \tan (c+d x)}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[A + C*Sec[c + d*x]^2,x]

[Out]

A*x + (C*Tan[c + d*x])/d

________________________________________________________________________________________

fricas [B]  time = 0.44, size = 31, normalized size = 2.07 \[ \frac {A d x \cos \left (d x + c\right ) + C \sin \left (d x + c\right )}{d \cos \left (d x + c\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(A+C*sec(d*x+c)^2,x, algorithm="fricas")

[Out]

(A*d*x*cos(d*x + c) + C*sin(d*x + c))/(d*cos(d*x + c))

________________________________________________________________________________________

giac [A]  time = 0.26, size = 15, normalized size = 1.00 \[ A x + \frac {C \tan \left (d x + c\right )}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(A+C*sec(d*x+c)^2,x, algorithm="giac")

[Out]

A*x + C*tan(d*x + c)/d

________________________________________________________________________________________

maple [A]  time = 0.98, size = 16, normalized size = 1.07 \[ A x +\frac {C \tan \left (d x +c \right )}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(A+C*sec(d*x+c)^2,x)

[Out]

A*x+C*tan(d*x+c)/d

________________________________________________________________________________________

maxima [A]  time = 0.42, size = 15, normalized size = 1.00 \[ A x + \frac {C \tan \left (d x + c\right )}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(A+C*sec(d*x+c)^2,x, algorithm="maxima")

[Out]

A*x + C*tan(d*x + c)/d

________________________________________________________________________________________

mupad [B]  time = 2.34, size = 17, normalized size = 1.13 \[ \frac {C\,\mathrm {tan}\left (c+d\,x\right )+A\,d\,x}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(A + C/cos(c + d*x)^2,x)

[Out]

(C*tan(c + d*x) + A*d*x)/d

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (A + C \sec ^{2}{\left (c + d x \right )}\right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(A+C*sec(d*x+c)**2,x)

[Out]

Integral(A + C*sec(c + d*x)**2, x)

________________________________________________________________________________________